package com.qf.dao;

import com.qf.domain.Book;

import java.util.List;

public interface BookDao {
    List<Book> selectAll();

    void delete(int bookId);

    Book selectById(int bookId);
    void update(Book book);
    void insert(Book book);

    long selectCount();
    List<Book>selectPage(int page_num,int page_size);

    long selectCount(String where, List<Object> params);
    List<Book> selectPage(int page_num, int page_size, String where, List<Object> params);
}
